package com.xposed.aliproxy.utils;

import android.app.ProgressDialog;
import android.content.Context;

public class ProgressUtil {
    private static ProgressDialog progressDialog;

    public static void showProgressDialog(Context context, boolean z, String str) {
        CharSequence str2 = "";
        if (progressDialog == null) {
            progressDialog = new ProgressDialog(context);
            progressDialog.setCancelable(z);
        }
        progressDialog.setMessage(str2);
        progressDialog.show();
    }

    public static void closeProgressDialog() {
        if (progressDialog != null) {
            progressDialog.dismiss();
            progressDialog = null;
        }
    }
}
